package cn.wrl.auth.service.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthResponse {

    private Account account;

    private Long code;

    public boolean isOk() {
        return Objects.equals(this.code, AuthCode.SUCCESS.getCode());
    }
}
